bui.ready(function(){
        // 自定义取值示例,分钟数大于60的索引不能
        var arrs = ['人才库', '成果库', '新闻库', '需求库'];
        
        var input2 = $("#datepicker_input2");
        var uiPickerdate2 = bui.pickerdate({
            handle: "#datepicker_input2",
            // input 显示的日期格式
            formatValue: "mm",
            cols: {
                year: "none",
                month: "none",
                date: "none",
                hour: "none",
                minute: {
                    values: [0,1,2,3],
                    displayValues: arrs
                },
                second: 'none'
            },
            onChange: function(value) {
                // var index = parseInt(value);
                // var val = arrs[index];
                // input2.text(val);
            },
            callback: function(e) {
                console.log(e.target)
                console.log()
                if(this.picker.value[0] == 0){
                    window.location.href = "/index/people/index"
                }else if(this.picker.value[0] == 1){
                    window.location.href = "/index/fruit/index"
                }else if(this.picker.value[0] == 2){
                    window.location.href = "/index/news/index"
                }else if(this.picker.value[0] == 3){
                    window.location.href = "/index/requirement/index"
                }
            },
        });
})
